package stuttgart.uni.locationtracker;

import java.io.Serializable;

import android.os.Parcel;
import android.os.Parcelable;


public class FriendList implements Parcelable, Serializable{
	
	private String[] id;
	private String[] username;
	
	
	public static final Parcelable.Creator<FriendList> CREATOR = new Parcelable.Creator<FriendList>() {
		public FriendList createFromParcel(Parcel in) {
			return new FriendList(in);
		}

		public FriendList[] newArray(int size) {
			return new FriendList[size];
		}
	};

	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	public void readFromParcel(Parcel in) {
		in.readStringArray(id);
		in.readStringArray(username);	
	}
	
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeStringArray(id);
		dest.writeStringArray(username);
	}
	
	public String[] getId() {
		return id;
	}

	public String[] getUsername() {
		return username;
	}

	private FriendList(Parcel in) {
        readFromParcel(in);
    }
	
	
	public FriendList(String[] id, String[] username) {
		this.id =id;
		this.username = username;
	}

}
